const http = require('../utils/http.js')

export const login = (data) => { // 用户登录 获取session_key
  return http._get(`/api/v1/admin/auth_login/session_key`, data)
}

export const getLoginCode = (data) => { //获取注册手机验证码
  return http._get(`/api/v2/mc/login/code`, data, false)
}
export const smsLogin = (data) => { //手机验证码登录
  return http._post(`/api/v2/mc/login`, data, false)
}
